package com.qumitech.visualnovel.datasource.app;

import com.qumitech.visualnovel.model.dao.app.UserGamingStarTrekStatisticsDO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserGamingStarTrekStatisticsDOMapper {
    int deleteByPrimaryKey(Long id);

    int insert(UserGamingStarTrekStatisticsDO record);

    int insertSelective(UserGamingStarTrekStatisticsDO record);

    UserGamingStarTrekStatisticsDO selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(UserGamingStarTrekStatisticsDO record);

    int updateByPrimaryKey(UserGamingStarTrekStatisticsDO record);

    int getStatisticListCount(@Param("uid") String uid,
                              @Param("minGamingDiamonds") String minGamingDiamonds,
                              @Param("maxGamingDiamonds") String maxGamingDiamonds,
                              @Param("startTime") String startTime, @Param("endTime") String endTime);

    List<UserGamingStarTrekStatisticsDO> getStatisticList(@Param("uid") String uid,
                                                          @Param("minGamingDiamonds") String minGamingDiamonds,
                                                          @Param("maxGamingDiamonds") String maxGamingDiamonds,
                                                          @Param("startTime") String startTime, @Param("endTime") String endTime,
                                                          @Param("orderType") String orderType, @Param("orderBy") String orderBy,
                                                          @Param("offset") int offset, @Param("limit") int limit);
}